#include <Utility/CLib.h>
#include <Utility/intrinsic.h>
#include <Kernel/syscall.h>
#include <IO/VideoTextMode.h>

int main(int argc, char* argv[], char* envp[])
{
    WORD wCS;
    WORD wDS;
    WORD wSS;
    __asm {
        mov wCS, cs
        mov wDS, ds
        mov wSS, ss
    }
    printf("CS = 0x%x, DS = 0x%x, SS = 0x%x, EFLAGS = 0x%x, CR3 = 0x%x.\r\n", wCS, wDS, wSS, READ_EFLAGS_32(), ReadCR3());
    CreateProcess("\\PROGRAM\\WORLD.EXE", "", 0, NULL);
    while (1)
    {
        SetColor(VIDEO_TEXT_MODE_FOREGROUND_BLUE);
        // printf("HELLO.EXE\r\n");
        SetColor(VIDEO_TEXT_MODE_COLOR_INFO);
    }
}
